#ifndef FUN_H
#define FUN_H

#include <vector>
#include <iostream>
#include <opencv2/opencv.hpp>

struct PresetPara
{
    std::string videoPath;
    int fps;
    int duration;
    int frame_h;
    int frame_w;
    int af;
};

std::vector<std::string> readFile(std::string filename);


/**
 * @brief primaryFilter
 * @param cap
 * @return 0: video is not exist
 *         1: video is can not opened
 *         2:
 */
int primaryFilter(std::string videoPath, cv::VideoCapture cap, PresetPara pPara);

int frameAnalysis(std::string videoPath, cv::VideoCapture cap);


int getUVHighlightRegion(cv::Mat &frame);
#endif // FUN_H
